package com.dwxt.community.aiequipment.sellmachine.entity;

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.annotation.JsonInclude.*;
import org.springframework.format.annotation.*;

import javax.validation.constraints.*;
import java.util.*;
@JsonInclude(Include.NON_NULL)
public class SellMachine {
    @NotBlank(message = "请输入设备ID！")
    private String deviceId;

    private Double gpsLng;

    private Double gpsLat;

    private String iccid;

    private Integer signalIntensity;

    private Integer firmwareVersion;

    private Integer chargingCurrent;

    private Integer batteryVoltage;

    private Integer sunVoltage;

    private Integer dailyElectricity;

    private Integer dailyCharge;

    private Integer batteryTemperature;

    private Integer mainboardTemperature;

    private Integer userType;
    private List<SellMachineAisle> sellMachineAisles;

    private Integer deviceType;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;
    @NotNull(message = "地址不能为空！")
    private String address;

    private Integer useing;
    @NotNull(message = "编号不能为空！")
    private String controlNo;

    /**
     * 货道数量统计(非数据库字段)
     */
    private Integer aisleNumber;

    public List<SellMachineAisle> getSellMachineAisles() {
        return sellMachineAisles;
    }

    public void setSellMachineAisles(List<SellMachineAisle> sellMachineAisles) {
        this.sellMachineAisles = sellMachineAisles;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId == null ? null : deviceId.trim();
    }

    public Double getGpsLng() {
        return gpsLng;
    }

    public void setGpsLng(Double gpsLng) {
        this.gpsLng = gpsLng;
    }

    public Double getGpsLat() {
        return gpsLat;
    }

    public void setGpsLat(Double gpsLat) {
        this.gpsLat = gpsLat;
    }

    public String getIccid() {
        return iccid;
    }

    public void setIccid(String iccid) {
        this.iccid = iccid == null ? null : iccid.trim();
    }

    public Integer getSignalIntensity() {
        return signalIntensity;
    }

    public void setSignalIntensity(Integer signalIntensity) {
        this.signalIntensity = signalIntensity;
    }

    public Integer getFirmwareVersion() {
        return firmwareVersion;
    }

    public void setFirmwareVersion(Integer firmwareVersion) {
        this.firmwareVersion = firmwareVersion;
    }

    public Integer getChargingCurrent() {
        return chargingCurrent;
    }

    public void setChargingCurrent(Integer chargingCurrent) {
        this.chargingCurrent = chargingCurrent;
    }

    public Integer getBatteryVoltage() {
        return batteryVoltage;
    }

    public void setBatteryVoltage(Integer batteryVoltage) {
        this.batteryVoltage = batteryVoltage;
    }

    public Integer getSunVoltage() {
        return sunVoltage;
    }

    public void setSunVoltage(Integer sunVoltage) {
        this.sunVoltage = sunVoltage;
    }

    public Integer getDailyElectricity() {
        return dailyElectricity;
    }

    public void setDailyElectricity(Integer dailyElectricity) {
        this.dailyElectricity = dailyElectricity;
    }

    public Integer getDailyCharge() {
        return dailyCharge;
    }

    public void setDailyCharge(Integer dailyCharge) {
        this.dailyCharge = dailyCharge;
    }

    public Integer getBatteryTemperature() {
        return batteryTemperature;
    }

    public void setBatteryTemperature(Integer batteryTemperature) {
        this.batteryTemperature = batteryTemperature;
    }

    public Integer getMainboardTemperature() {
        return mainboardTemperature;
    }

    public void setMainboardTemperature(Integer mainboardTemperature) {
        this.mainboardTemperature = mainboardTemperature;
    }

    public Integer getUserType() {
        return userType;
    }

    public void setUserType(Integer userType) {
        this.userType = userType;
    }

    public Integer getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(Integer deviceType) {
        this.deviceType = deviceType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public Integer getUseing() {
        return useing;
    }

    public void setUseing(Integer useing) {
        this.useing = useing;
    }

    public String getControlNo() {
        return controlNo;
    }

    public void setControlNo(String controlNo) {
        this.controlNo = controlNo == null ? null : controlNo.trim();
    }

    public Integer getAisleNumber() {
        return aisleNumber;
    }

    public void setAisleNumber(Integer aisleNumber) {
        this.aisleNumber = aisleNumber;
    }
}